<!DOCTYPE html>
<?php
session_start();
$order=$_SESSION['cart'];
$sum=0;
?>
<html>
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" type="text/css" href="css/style.css" />
	<title>php购物</title>
</head>
<body>
	<div>
		<h1>购物车</h1><hr/>
		<a href="index.php">返回商品列表</a></p>
		<table>
			<tr>
				<th>商品名</th>
				<th>售价</th>
				<th>数量</th>
			</tr>
			<?php foreach($order as $key => $value):?>
			<tr>
				<td><?php echo $value['name']; ?></td><!--商品名-->
				<td>￥<?php echo $value['price']; ?></td>
				<td>
					<a class="btn" href=" id=<?php echo $value['id']?>">-</a>
					<?php echo $value['num']; ?>
					
				</td>
			</tr>
		</table>
	</div>
</body>
</html>